<!DOCTYPE html>
<html>
<#include "../head.html">
<body>
<table class="mc">
    <tr>
        <td class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                    <#include "../adminInfo.html">
                <!--管理员信息---}-->
                <div class="nav-wrap">
                    <#include "../borrow/left.html">
                </div>
            </div>
            <!--左侧导航---}-->
        </td>
        <td class="mc-m">
            <div class="navToggle"></div>
        </td>
        <td class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
            <!--顶部导航---}-->

            <!--面包屑导航---{-->
            <#assign moduleName="理财宝用户资金转入列表">
            <#include "../borrow/banner.html">
            <!--面包屑导航---}-->

            <!--工具栏--{-->
				<div id="toolbar" class="clearfix">
					<div class="toolbor-module export">
                   		<input type="button" onclick="exportxls()" value="导出报表" class="input-button export-btn"/>
                	</div>
				
					<div class="toolbor-module search">
						<input type="button" value="搜索" class="input-button" onclick="sousuo();">
					</div>
					<div class="toolbor-module search">
	                	<div style="height:22px;line-height:22px;float:left;">投资信息状态：</div>
						<div class="select-box" id="status">
							<div class="tag-select">全部</div>
							<ul class="tag-options">
								<li data-value="-1" <#if params.get("status")?? && params.get("status") == -1 >data-selected="selected"</#if>>全部</li>
								<li data-value="0" <#if params.get("status")?? && params.get("status") == 0 >data-selected="selected"</#if>>待审核</li>
								<li data-value="1" <#if params.get("status")?? && params.get("status") == 1 >data-selected="selected"</#if>>审核通过</li>
								<li data-value="2" <#if params.get("status")?? && params.get("status") == 2 >data-selected="selected"</#if>>审核未通过</li>
								<li data-value="3" <#if params.get("status")?? && params.get("status") == 3 >data-selected="selected"</#if>>赎回审核中</li>
								<li data-value="4" <#if params.get("status")?? && params.get("status") == 4 >data-selected="selected"</#if>>赎回成功</li>
								<li data-value="5" <#if params.get("status")?? && params.get("status") == 5 >data-selected="selected"</#if>>赎回失败</li>
							</ul>
						</div>
					</div>
					<div class="toolbor-module search">
	                   	<div style="height:22px;line-height:22px;float:left;">投资时间：</div>
	                    <input class="_search-value" name="dotime1" id="dotime1" size="15" onclick="change_picktime()"/>
	                    <div style="height:22px;line-height:22px;float:left;margin:0 8px;"></div>
	                    <input class="_search-value" name="dotime2" id="dotime2" size="15" onclick="change_picktime()"/>
                	</div>
					<div class="toolbor-module search">
						<input type="text" name="username" id="username" value="请输入用户名" data-value="请输入用户名" class="search-value">
					</div>
					<div class="toolbor-module search">
						<input type="text" name="name" id="name" value="请理财宝名" data-value="请理财宝名" class="search-value">
					</div>
				</div> 
			<!--工具栏<td></td>-->
            	<div id="main" class="clearfix">
					<table class="data-list">
                        <tr class="header">
                            <td>用户名称</td>
                            <td>理财宝名</td>
                            <td>转入总额</td>
                            <td>可用余额</td>
                            <td>天利率</td>
                            <td>应收利息</td>
                            <td>利息管理费</td>
                            <td>利息管理费</td>
                            <td>生息天数</td>
                           	<td>计息开始时间</td>
                           	<td>计息结束时间</td>
                            <td>状态</td>
                            <td>添加时间</td>
                        </tr>
                        <#if (itemList?exists)&&(itemList?size>0)>
                    	<#list itemList as item>
                        <tr class="s">
                            <td>${item.username!"-"}</td>
                            <td>${item.name!"-"}</td>
                            <td>${item.money}</td>
                            <td>${item.use_money}</td>
                            <td>${item.apr}%</td>
                            <td>${item.interest}</td>
                            <td>${item.fee}</td>
                            <td>${item.use_interest}</td>
                            <td>${item.tender_day}</td>
                            <td><#if item.interest_start_time??>${dateformat(item.interest_start_time?c)}<#else>--</#if></td>
                            <td><#if item.interest_end_time??>${dateformat(item.interest_end_time?c)}<#else>--</#if></td>
                            <td><#if item.status == 0>待审核<#elseif item.status == 1>审核通过<#elseif item.status == 2>审核失败<#elseif item.status == 3>赎回审核中
                            <#elseif item.status == 4>已赎回<#elseif item.status == 5>赎回失败<#else>--</#if></td>
                            <td>${dateformat(item.add_time?c)}</td>
                        </tr>
                    </#list><#else><tr><td colspan="12">无符合条件信息！</td></tr>
                    </#if>
                    </table>
                    
                    <!--翻页系统--{-->
					<div class="container">
					</div>
					<!--翻页系统--}-->
                    
					<!--底部工具栏--{-->
					<div id="bottomToolbar" class="clearfix">
						<div class="other-tool">
							<dl class="refresh-data">
								<dt class="refresh-data-icon"></dt>
								<dd>
									<a href="javascript:void(0);" class="refresh-page">刷新数据</a>
								</dd>
							</dl>
						</div>
						 <!--翻页系统--{-->
	                    <div class="container">
	                        <#import "../../common/page.html" as pager><@pager.pagination page=page url="/admin/treasure/rechargeList.html" map=params style="style1"  />
	                    </div>
	                    <!--翻页系统--}-->
					</div>
					<!--底部工具栏--}-->

					<script>
	                    function sousuo(){
	                    	var url = '/admin/treasure/rechargeList.html?search=true';
	                        var sou = "";
	                        var username = $("#username").val();
	                        if (username!=null&&username!=""&&username!="undefine"&&username!="请输入用户名"){
	                            sou += "&username="+username;
	                        }
	                        var name = $("#name").val();
	                        if (name!=null&&name!=""&&name!="undefine"&&name!="请理财宝名"){
	                            sou += "&name="+name;
	                        }
	                        var dotime1 = $("#dotime1").val();
	                        if (dotime1!=null){
	                            sou += "&dotime1="+dotime1;
	                        }
	                        var dotime2 = $("#dotime2").val();
	                        if (dotime2!=null){
	                            sou += "&dotime2="+dotime2;
	                        }
	                        var status = $("#status").find(".open-selected").attr("data-value");
	                        if (status!="" && status!=null){
	            				sou += "&status="+status;
	            			}
	                        if (sou!=""){
	                            location.href=url+sou;
	                        }else location.href=url;
	                    }
	                    
	                    function exportxls(){
	                    	var xlsurl = '/admin/treasure/rechargeList.html?actionType=export';
	                        var sou = "";
	                        var username = $("#username").val();
	                        if (username!=null&&username!=""&&username!="undefine"&&username!="请输入用户名"){
	                            sou += "&username="+username;
	                        }
	                        var name = $("#name").val();
	                        if (name!=null&&name!=""&&name!="undefine"&&name!="请理财宝名"){
	                            sou += "&name="+name;
	                        }
	                        var dotime1 = $("#dotime1").val();
	                        if (dotime1!=null){
	                            sou += "&dotime1="+dotime1;
	                        }
	                        var dotime2 = $("#dotime2").val();
	                        if (dotime2!=null){
	                            sou += "&dotime2="+dotime2;
	                        }
	                        var status = $("#status").find(".open-selected").attr("data-value");
	                        if (status!="" && status!=null){
	            				sou += "&status="+status;
	            			}
	                        if (sou!=""){
	                            location.href=xlsurl+sou;
	                        }else{
	                            location.href=xlsurl;
	                        }
	                    }
					</script>
				</div>
		</td>
    </tr>
    <tr>
	    <!--尾部--{-->
	    <td colspan="3" class="mc-b"><#include "../foot.html"></td>
	    <!--尾部--}-->
	</tr>
</table>

</body>
</html>
<#include "../jsPage.html">
